import {request} from '../utils/util'

//banner
export function getAddress(param) {
  console.log(param)
  return request({
    url: 'https://restapi.amap.com/v3/place/text',
    method: 'GET',
    data: param
  })
}
//banner
export function getBanners(param) {
  return request({
    url: 'ecapi.banner.list',
    method: 'POST',
    data: param
  })
}
//滚动公告
export function getNotices(param) {
  return request({
    url: 'ecapi.notice.list',
    method: 'POST',
    data: param
  })
}
//商品列表
export function getProducts(param) {
  return request({
    url: 'ecapi.home.product.list',
    method: 'POST',
    data: param
  })
}
//商品分类
export function getCategory(param) {
  return request({
    url: 'ecapi.category.list',
    method: 'POST',
    data: param
  })
}
